<style>
	/*** 模型的样式表 ***/
	<#if reportModel?? && reportModel.viewtype != "view">
	.cz_<#if reportModel??>${reportModel.id}</#if>_chart{
		<#if reportModel?? && reportModel.height??>height:${reportModel.height}px;<#else>height:220px;</#if>width:<#if reportModel??>${reportModel.width!'400'}px</#if>; margin: 0 auto;
	}  
	.cz_<#if reportModel??>${reportModel.id}</#if>_table{
		padding:5px;margin-left: 0px; margin-right: 0px; height: 225px;overflow:auto;
	}
	</#if>
	<#if reportModel?? && reportModel.styles??>
	<#list reportModel.styles as style>
	<#if style.pline??  && style.pline == "0">
	.cz_${style.dataid}_even{
		${style.style!''}
	} 	
	<#elseif style.pline??  && style.pline == "1">
	.cz_${style.dataid}_odd{
		${style.style!''}
	}
	<#else>
	.cz_${style.dataid}{
		${style.style!''}
	}
	</#if>
	.m_${style.dataid}{
		${style.style!''}
	}
	</#list>
	</#if>
</style>
<div class="rs_layout_center">
		
	<form id="filterlist_form" action="/${orgi}/design/custom/${report.id!''}/<#if reportModel??>${reportModel.id!''}</#if>/queryFilter.html" method="post" data-toggle="ajax-form" data-target="#design_table">
		<div id="filterlist_div" class="shrinkage">
			<#include "filterlist.html"/>	
		</div>
	</form>
	<div id='design_data_div'>
		<#include "designdata.html"/>
	</div>
</div>
<div class="rs_layout_bottom toolBar_bottom" style="background-color:#FFFFFF;z-index: 100;position: absolute;width: 100%;">
	<form action="/${orgi}/design/custom/${report.id!''}/<#if reportModel??>${reportModel.id!''}</#if>/queryFilter.html" method="post" data-toggle="ajax-form" data-target="#design_table" method="post">
	
	<p class="fx_icon" style="text-align:center;padding:0px;">
		<div style="float:left;line-height:18px;;padding:6px 0 0 4px;" class="player">
			<a href="/${orgi}/design/custom/${report.id!''}/updatecache.html?modelid=<#if reportModel??>${reportModel.id!''}</#if>" title="刷新缓存" data-toggle="load" data-target="#design_table" class="active" style="text-decoration: none;">
				<img src="/assets/images/left_icon5.png">
			</a>   

			<a href="<#if reportModel??>/${orgi}/design/custom/exportdata/${report.id!''}/${reportModel.id!''}.html?wt=excel&opt=0</#if>" target="_blank" title="导出到Excel">
				<img src="/assets/images/excel.png">
			</a>
			<a href="<#if reportModel??>/${orgi}/design/custom/exportdata/${report.id!''}/${reportModel.id!''}.html?wt=csv&opt=0</#if>" target="_blank" title="导出到CSV">
				<img src="/assets/images/csv_text.png">
			</a>
			<a href="/${orgi}/design/custom/addsumcol/${report.id!''}/<#if reportModel??>${reportModel.id!''}</#if>.html" data-toggle="ajax" data-lock="false" data-width="600" title="新增列" class="tbtn" id="deletecol">
				<img src="/assets/images/ctr-icons-119.png">
			</a>
			<a href="/${orgi}/design/custom/addsumrow/${report.id!''}/<#if reportModel??>${reportModel.id!''}</#if>.html" data-toggle="ajax" data-width="600" title="新增行" class="tbtn" id="deletecol">
				<img src="/assets/images/ctr-icons-120.png">
			</a>

			<a href="javascript:BtnAction.editNewRowCol()" title="修改汇总行/列">
				<img src="/assets/images/top_icon125.png">
			</a>
			<a href="javascript:BtnAction.clearStyle('<#if reportModel??>${reportModel.id}</#if>');" title="清除已设置的所有格式">
				<img src="/assets/images/eraser.png">
			</a>
			<a href="javascript:BtnAction.clear();" title="清空" class="tbtn" id="clear">
				<img src="/assets/images/ctr-icons-15.png">
			</a>
		</div>
		<input name="opt" type="hidden" value="current"/>
		<div class="papers_1" style="float:right;line-height:18px;margin:0 10px 0 5px;">
			<img class="pageElems" onclick="submitSearchForm('current');" title="查询" alt="查询" src="/assets/images/action_go.gif">
			<img class="pageElems" onclick="$('#p').val('1');submitSearchForm('first');" title="首页" alt="首页" src="/assets/images/go-first-view.png">
			<img class="pageElems" onclick="$('#p').val('<#if reportData?? && reportData.page gt 1>${reportData.page - 1}<#else>1</#if>');submitSearchForm('last');" title="上一页" alt="上一页" src="/assets/images/go-previous-view.png">			
			<img class="pageElems" onclick="$('#p').val('<#if reportData?? && reportData.data?? && reportData.data?size gte reportData.pageSize>${reportData.page + 1}<#else><#if reportData??>${reportData.page}</#if></#if>');submitSearchForm('next');" title="下一页" alt="下一页" src="/assets/images/go-next-view.png">
			<img class="pageElems" onclick="$('#p').val('<#if reportData?? && reportData.pageSize gt 1 && reportData.total / reportData.pageSize gt 0>${(reportData.total / reportData.pageSize)?ceiling}<#else>1</#if>');submitSearchForm('final');" title="尾页" alt="尾页" src="/assets/images/go-last-view.png">
		</div>
		<div style="float:right;line-height:20px;">
			<label style="font-size: 13px;color: #4095d4;"><#if reportModel?? && reportModel.querytext?? && reportModel.querytext?length gt 0>自定义查询，</#if>数据更新时间：<#if reportModel?? && reportData??>${reportData.date?string("yyyy-MM-dd HH:mm:ss")}</#if>，本次查询用时：<#if reportModel?? && reportData??>${reportData.queryTime/1000.0}<#else>0</#if> 秒 ，<#if reportData?? && reportData.total gt 0>总计：${reportData.total}条，</#if></label>
			<label style="font-size: 13px;">跳转到第</label>
			<input name="p" type="text" style="width: 30px;height: 10px;" id="p" value="<#if reportData??>${reportData.page}<#else>1</#if>">
			<label style="font-size: 13px;">页，</label>
			<label style="font-size: 13px;">每页</label>
			<select onchange="$('#p').val(1)" name="ps" id="ps" style="width: 55px;height: 20px;padding:0px;">
				<option value="10" <#if reportData?? && reportData.pageSize == 10>selected="selected"</#if>>10</option>
				<option value="20" <#if reportData?? && reportData.pageSize == 20>selected="selected"</#if>>20</option>
				<option value="50" <#if reportData?? && reportData.pageSize == 50>selected="selected"</#if>>50</option>
				<option value="100" <#if reportData?? && reportData.pageSize == 100>selected="selected"</#if>>100</option>
				<option value="200" <#if reportData?? && reportData.pageSize == 200>selected="selected"</#if>>200</option>
				<!--  
				<option value="0">不限</option>
				-->
			</select>
			<label style="font-size: 13px;">条，</label>
		</div>
	</p>
	</form>
</div>
